package com.frog.queue.starter.sns.enums;

/**
 * @author wuqiong 2022/3/4
 * @description 协议枚举
 */
public enum Protocol {
    HTTP("http", "通过HTTP POST传递JSON编码的消息"),
    HTTPS("https", "通过HTTPS POST传递JSON编码的消息"),
    EMAIL("email", "通过SMTP传递邮件"),
    EMAIL_JSON("email-json", "通过SMTP传递JSON编码的邮件"),
    SMS("sms", "通过短信传递信息"),
    SQS("sqs", "将JSON编码的消息传递到Amazon SQS队列"),
    APPLICATION("application", "将JSON编码的消息传递到移动应用程序和设备的 Endpoint Arn"),
    LAMBDA("lambda", "向Lambda函数传递JSON编码的消息"),
    FIREHOSE("firehose", "将JSON编码的消息传递到Amazon Kinesis数据流");

    /** 协议名称 */
    private String name;
    /** 协议描述 */
    private String description;

    private Protocol(String name, String description) {
        this.name = name;
        this.description = description;
    }


    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }
}
